package com.yzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yzy.entity.Goods;
import com.yzy.entity.query.WrappedGood;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface GoodsMapper extends BaseMapper<Goods> {
    List<WrappedGood> search(@Param("key") String key);
    WrappedGood details(@Param("id") Integer goodsId);
}
